package com.paullorenc.rose.desktop

import com.paullorenc.rose.desktop.interfaces.RoseInterface

object RoseDeviceManager {
    val DeviceList: MutableList<RoseInterface>
        get() {
           return DeviceList
        }

    fun add(interf: RoseInterface) {
        DeviceList.add(interf)
    }
    fun remove(interf: RoseInterface) {
        DeviceList.remove(interf)
    }
    suspend fun stop() {
        for (interf in DeviceList) {
            interf.stop()
        }
    }

}